from django.db import models

class User(models.Model):
    username = models.CharField(max_length=20)
    password = models.CharField(max_length=20)
    user_leve = models.IntegerField()
    score = models.CharField(max_length=20)
class Cate(models.Model):
    name = models.CharField(max_length=20)
class News(models.Model):
    title = models.CharField(max_length=20)
    content = models.CharField(max_length=20)
    cate = models.ForeignKey(Cate,on_delete=models.SET_NULL,null=True)
